#/usr/bin/python

from mongodb import mongoDBPool, Collection

# DB config
mongoDBPool.db_name = 'test'

#test data
@Collection
def feeds():
	return [
		{ 'feed1' : 'test data 1'},
		{ 'feed2' : 'test data 2'},
		{ 'feed3' : 'test data 3'},
		{ 'feed4' : 'test data 4'},
		{ 'feed5' : 'test data 5'},
	]

@Collection
def groups():
	feeds_ = feeds();
	return [
					{ "group1" : [feeds_[0], feeds_[2]],
						"group2" : [feeds_[2]],
						"group3" : [feeds_[1], feeds_[3]],
						"group4" : [feeds_[2], feeds_[3]], }
				]

@Collection
def users():
	return [
					{ "email" : "lnyarl@gmail.com",
						"password" : "1234" }, 
					{ "email" : "lethee@gmail.com",
						"password" : "1234" }, 
					{ "email" : "pismute@gmail.com",
						"password" : "1234" }
					]
